﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage1.master" AutoEventWireup="true" CodeFile="NguoiDung_XemDanhSachSanPham.aspx.cs" Inherits="KhachHangDaiChung_KhachHangDaiChung_XemDanhSachSanPham" Title="Danh Sách Sản Phẩm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register src="../../UserControls/PageInterface.ascx" tagname="PageInterface" tagprefix="uc1" %>

<%@ Register src="../../UserControls/SiteMapLoaiSanPham.ascx" tagname="SiteMapLoaiSanPham" tagprefix="uc2" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
    <center>
   
        <uc2:SiteMapLoaiSanPham ID="SiteMapLoaiSanPham1" runat="server" />
        <h2> DANH SÁCH SẢN PHẨM</h2> 
        
    <asp:DataList ID="DataList_DanhSachSanPham" runat="server" 
        RepeatColumns="2" onitemdatabound="DataList_DanhSachSanPham_ItemDataBound" 
         RepeatDirection="Horizontal" CellPadding="5" CellSpacing="5" 
            onitemcreated="DataList_DanhSachSanPham_ItemCreated" 
            onitemcommand="DataList_DanhSachSanPham_ItemCommand">
        <EditItemStyle BorderColor="Red" BorderStyle="Dotted" BorderWidth="1px" />
        <ItemStyle BorderColor="#CC0000" BorderStyle="Solid" BorderWidth="1px" />
        <ItemTemplate>
            <table width="240"> 
                <tr>
                    <td class="datalist_tenSanPham">
                        <asp:HyperLink ID="hyperlink_TenSP" runat="server"  NavigateUrl='<%# Eval("MaSP", "NguoiDung_XemChiTietSanPham.aspx?MaSP={0}") %>'><%# Eval("TenSP") %></asp:HyperLink>
                        <asp:Label ID="lbSoLuong" runat="server" Visible="true" Text='<%#Eval("SoLuong") %>'></asp:Label>
                        <asp:Label ID="lbGiaCu" Visible="false" runat="server" Text='<%#Eval("GiaCu") %>'></asp:Label>
                    </td>
                 </tr>
                 <tr>
                   <td>
                        <asp:HyperLink ID="hyperlink_DauVaoDanhSach" runat="server" ></asp:HyperLink>
                   </td>
                </tr>           
                <tr>
                    <td align="center">
                        <asp:HyperLink ID="HyperLink_PicLink" runat="server" NavigateUrl='<%# Eval("MaSP", "NguoiDung_XemChiTietSanPham.aspx?MaSP={0}") %>'>                            
                            <asp:Image ID="Image_hinhSP"  Height="140" Width="140" runat="server" ImageUrl='<%# Eval("HinhAnh") %>' />
                        </asp:HyperLink>
                    </td>
                 </tr>
                 
                  <tr>
                    <td>
                        <asp:Label ID="lblGia" runat="server" Text="" Font-Bold="True"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblTangKem" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td align="right">                        
                        <a id="abc" href="#">
                            <asp:ImageButton ID="ImageButton1" runat="server" CommandName="DuaVaoGioHang" CommandArgument='<%#Eval("Id") %>' ImageUrl="~/Resource/images/button_add_to_cart1_3.gif" />
                            <!--<asp:Image ID="Image1"  runat="server" ImageUrl="~/Resource/images/button_add_to_cart1_3.gif" />-->
                        </a>
                    </td>
                </tr>
            </table>
            
        </ItemTemplate>
    </asp:DataList>
   <uc1:PageInterface ID="PageInterface1" runat="server" />
     </center>
   
   <asp:HiddenField ID="HiddenField1" runat="server" />    
    <asp:Panel ID="Panel1" runat="server" BorderColor="#009933" 
        BorderStyle="Double" BorderWidth="1px" BackColor="#fbd03c">
    <table>
    <tr>
        <td><asp:Label ID="lblGioHang" runat="server" Text=""></asp:Label></td>
    </tr>
    <tr>
        <td>
            <asp:Button ID="btnDong" runat="server" Text="Ðóng" />
        </td>
    </tr>
    </table>
    </asp:Panel>    
    <cc1:ModalPopupExtender ID="msg" runat="server" TargetControlID="HiddenField1" PopupControlID="Panel1" CancelControlID="btnDong" >
    </cc1:ModalPopupExtender>
    
   
</asp:Content>

